package com.kingyea.app.market.syncMission.dao;

import com.kingyea.app.market.condition.AllCondition;
import com.kingyea.app.market.syncMission.bean.SyncMission;
import com.kingyea.app.market.syncMission.bean.SyncMissionListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author
 * @version v1.0.0
 * @description SyncMissionMapper
 * @date Created in 2018-03-22 17:48:12
 */
public interface SyncMissionMapper {

    /**
     * 通过ID获取对象
     */
    SyncMission getById(@Param("id") String id);

    /**
     * 通过ID删除对象
     */
    void deleteById(@Param("id") String id);

    /**
     * 更新对象
     */
    void update(SyncMission obj);

    /**
     * 保存对象
     */
    int save(SyncMission obj);

    /**
     * 查询列表
     */
    List<SyncMission> list(SyncMission obj);

    List<SyncMissionListVo> taskList(Map<String, Object> obj);

    /**
     * 等待推送，或推送失败记录
     *
     * @param obj
     * @return
     */
    List<SyncMission> getPushResult(Map<String, Object> obj);

    /**
     * @Description:
     * @param: [condition]
     * @return: java.util.List<com.kingyea.app.market.syncMission.bean.SyncMission>
     * @author: cxc
     * @Date: 2018/6/5
     */
    List<SyncMission> search(AllCondition condition);

    Integer deletesByAppCode(String appCode);
}
